package com.book.book.domain;

import java.util.Date;

public class Borrow {
    private Integer borrowid;
    private Integer userid;
    private Integer bookid;
    private Date borrowtime;
    private Date returntime;
    private String bookname; // 确保有这个字段
    private String username; // 确保有这个字段
    private Integer status; // 新增这个字段

    // Getters and Setters

    public Integer getBorrowid() {
        return borrowid;
    }

    public void setBorrowid(Integer borrowid) {
        this.borrowid = borrowid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Date getBorrowtime() {
        return borrowtime;
    }

    public void setBorrowtime(Date borrowtime) {
        this.borrowtime = borrowtime;
    }

    public Date getReturntime() {
        return returntime;
    }

    public void setReturntime(Date returntime) {
        this.returntime = returntime;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Borrow{" +
                "borrowid=" + borrowid +
                ", userid=" + userid +
                ", bookid=" + bookid +
                ", borrowtime=" + borrowtime +
                ", returntime=" + returntime +
                ", bookname='" + bookname + '\'' +
                ", username='" + username + '\'' +
                ", status=" + status +
                '}';
    }
}